<?php include $this->admin_tpl('meta', 'admin');?>
<title>会员统计 - YzmCMS内容管理系统</title>
<style>
	html,body{height:100%;}
	.page-container{height:80%;}
</style>
</head>
<body>
<nav class="breadcrumb"><i class="yzm-iconfont yzm-iconai-home"></i> 首页 <span class="c-gray en">&gt;</span> 会员管理 <span class="c-gray en">&gt;</span> 会员统计 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="yzm-iconfont yzm-iconshuaxin"></i></a></nav>
<article class="page-container">
	<div id="main" style="width:100%;height:100%"></div>
</article>
<script type="text/javascript" src="<?php echo STATIC_URL;?>plugin/echarts/echarts.common.min.js"></script>
<script type="text/javascript">

	var res = <?php echo $result;?>;
	var myChart = echarts.init(document.getElementById('main'));

	var option = {
		title: {
			text: '近10日注册会员统计'
		},
		color: ['#409eff'],
		tooltip: {
			trigger: 'axis'
		},
		xAxis: {
		    type: 'category',
		    data: res.day
	    },
	    yAxis: {
		    type: 'value'
	    },
	    series: [{
		    data: res.num,
		    smooth: true,
		    type: 'line'
	    }]
	};

	myChart.setOption(option);
</script>
</body>
</html>